SOURCE_FILES = $(wildcard src/*.cr src/*/*.cr src/*/*/*.cr)
CRFLAGS  ?= --progress

bin/authd: $(SOURCE_FILES); $(Q)shards build authd $(CRFLAGS)
bin/authctl: $(SOURCE_FILES); $(Q)shards build authctl $(CRFLAGS)
build-server: bin/authd
build-client: bin/authctl
build: build-server build-client

release:; make build-server CRFLAGS="--progress --release"
